﻿using YAPL.Configuration;
using YAPL.Util;
namespace YAPL.Language.SourceParser {
	public static class InputParserFactory {
		public static InputParser CreateParser(InputInfo inputInfo) {
			var config = Config.Instance;
			var assemblyPath = config.GetString(Config.PARSER_ASSEMBLY_PATH);
			var typeName = config.GetString(Config.PARSER_TYPE_NAME);
			return TypeHelper.CreateType<InputParser>(assemblyPath, typeName, inputInfo);
		}
	}
}
